﻿using ttg_internal.Utilities.Common.Other;

namespace ttg_internal.Utilities.UsageVisualizer.ViewModel
{
    /// <summary>
    /// Base class for models of usage tabs
    /// </summary>
    internal abstract class UsageTabViewModel : BindableObject
    {
        // Private fields
        private string _title;

        /// <summary>
        /// Tab's title
        /// </summary>
        public string Title
        {
            get { return _title; }
            protected set
            {
                if (_title == value)
                {
                    return;
                }

                _title = value;
                Changed("Title");
            }
        }
    }
}
